import 'package:sensors_analytics_flutter_plugin/sensors_analytics_flutter_plugin.dart';

class UserTrack{
  static track(String eventName ,Map<String,dynamic> properties ){
    SensorsAnalyticsFlutterPlugin.track(eventName, properties);
  }

  static trackViewScreen(String pageName ,Map<String,dynamic> properties){
    if(properties == null){
      properties = Map<String,dynamic>();
    }
    properties.putIfAbsent("\$title", ()=>pageName);
    SensorsAnalyticsFlutterPlugin.trackViewScreen(pageName, properties);
  }
}